package com.mercury.pattern._15_iterator;

import java.util.Iterator;
import java.util.List;

/**
 *
 */
public class InfoCollege implements College {
    List<Department> depts;

    public InfoCollege(List<Department> depts) {
        this.depts = depts;
    }

    @Override
    public Iterator createIterator() {
        return new InfoIterator(depts);
    }
}